function act() {
    if (cm.getNumberFromQuestInfo(64015, "chk1") == 0) {
        cm.addPopupSay(9400583, 2000, "#face0#先干掉那边剩下的怪物！呃……！", "", 0);
        cm.playerMessage(5, "先帮助这里的人吧！");
        cm.playerMessage(-1, "先帮助这里的人吧！")
    } else {
        cm.openScriptNpc()
    }
}
var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(e, c, b) {
    var d = 8659132;
    status++;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.curNodeEventEnd(true);
            cm.setInGameDirectionMode(true, false, true);
            cm.setStandAloneMode(true);
            cm.onTeleport(0, 3, cm.getPlayer().getId(), -1650, 360);
            cm.Hidden_background("guide0", 0);
            cm.playerMessage(-1, "救出被屋顶压住的村民");
            cm.addPopupSay(9400583, 2000, "#face0#这边！你到我旁边来抬着这个！", "", 0);
            cm.sendNewEffects(18, [0, 1000, 2000, 0, 50])
        } else {
            if (status === a++) {
                cm.inGameDirectionEvent_AskAnswerTime(1000)
            } else {
                if (status === a++) {
                    cm.inGameDirectionEvent_OneTimeAction(2034, 9999);
                    cm.inGameDirectionEvent_QTE(1000)
                } else {
                    if (status === a++) {
                        cm.getMap().getReactorById(d).forceHitReactor(cm.getPlayer(), 2, -1645, 371, 0);
                        cm.addPopupSay(9400617, 2000, "呃……呃呃……", "", 0);
                        cm.inGameDirectionEvent_OneTimeAction(2035, 9999);
                        cm.inGameDirectionEvent_QTE(1000)
                    } else {
                        if (status === a++) {
                            cm.getMap().getReactorById(d).forceHitReactor(cm.getPlayer(), 3, -1645, 371, 0);
                            cm.addPopupSay(9400583, 2000, "#face0#再加把劲！加油！", "", 0);
                            cm.inGameDirectionEvent_OneTimeAction(2036, 9999);
                            cm.inGameDirectionEvent_QTE(1000)
                        } else {
                            if (status === a++) {
                                cm.getMap().getReactorById(d).forceHitReactor(cm.getPlayer(), 4, -1645, 371, 0);
                                cm.fieldEffect_PlayFieldSound("Sound/PL_MONAD.img/EP1/ACT1/reactordrop1", 128);
                                cm.addPopupSay(9400617, 2000, "呃啊啊，谢……谢谢你们。", "", 0);
                                cm.npc_ChangeController(9400617, "oid=2278801", -1430, 375, 9, -1480, -1380, 1, true, false);
                                cm.npc_SetSpecialAction("oid=2278801", "summon", 0, 0);
                                cm.npc_ChangeController(9400583, "oid=2278802", -1350, 360, 10, -1400, -1300, 1, true, false);
                                cm.npc_SetSpecialAction("oid=2278802", "summon", 0, 0);
                                cm.inGameDirectionEvent_AskAnswerTime(1000)
                            } else {
                                if (status === a++) {
                                    cm.npc_SetForceMove("oid=2278802", -1, 2000, 200);
                                    cm.npc_SetForceMove("oid=2278801", -1, 2000, 200);
                                    cm.sendNewEffects(1, [0, 0, 0, 0, 0])
                                } else {
                                    if (status === a++) {
                                        cm.inGameDirectionEvent_AskAnswerTime(1000)
                                    } else {
                                        if (status === a++) {
                                            cm.spawnMob(9402302, 1, -620, 290);
                                            cm.spawnMob(9402241, 1, -800, 160);
                                            cm.spawnMob(9402241, 1, -400, 208);
                                            cm.sendNewEffects(17, [2000, 2000, 1000, -620, 354])
                                        } else {
                                            if (status === a++) {
                                                cm.inGameDirectionEvent_AskAnswerTime(4500)
                                            } else {
                                                if (status === a++) {
                                                    cm.npc_LeaveField("oid=2278802");
                                                    cm.npc_LeaveField("oid=2278802");
                                                    cm.npc_LeaveField("oid=2278801");
                                                    cm.npc_LeaveField("oid=2278801");
                                                    cm.setStandAloneMode(false);
                                                    cm.setInGameDirectionMode(false, true, false);
                                                    cm.sendNewEffects(19, [0])
                                                } else {
                                                    if (status === a++) {
                                                        cm.spawnMob(9402304, 1, -1400, 180);
                                                        cm.spawnMob(9402323, 1, 145, 281);
                                                        cm.spawnMob(9402241, 1, -409, 308);
                                                        cm.spawnMob(9402314, 1, -165, 295);
                                                        cm.setNumberForQuestInfo(64015, "chk2", 1);
                                                        cm.playerMessage(-1, "协助巴特勒消灭一拥而上的暴走花花象！");
                                                        cm.addPopupSay(9400581, 2000, "#face1#哎！左边交给你了！", "", 0);
                                                        cm.dispose()
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
};